package entityDAOs;

import java.util.List;
import org.hibernate.LockMode;
import org.hibernate.Query;
import static org.hibernate.criterion.Example.create;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import entities.Languageitem;
import entitiesIds.LanguageitemId;

/**
 * A data access object (DAO) providing persistence and search support for
 * Languageitem entities. Transaction control of the save(), update() and
 * delete() operations can directly support Spring container-managed
 * transactions or they can be augmented to handle user-managed Spring
 * transactions. Each of these methods provides additional information for how
 * to configure it for the desired type of transaction control.
 * 
 * @see entities.Languageitem
 * @author MyEclipse Persistence Tools
 */

public class LanguageitemDAO extends BaseHibernateDAO<Languageitem,entitiesIds.LanguageitemId> {
	private static final Logger log = LoggerFactory
			.getLogger(LanguageitemDAO.class);
	// property constants
	public static final String ITEM_NAME = "itemName";
	public static final String ITEM_DESCRIPTION = "itemDescription";

	public List<Languageitem> findByItemName(Object itemName) {
		return findByProperty(ITEM_NAME, itemName);
	}

	public List<Languageitem> findByItemDescription(Object itemDescription) {
		return findByProperty(ITEM_DESCRIPTION, itemDescription);
	}
}